gdk/wayland: Support new `high-contrast` key
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Dec 2021 18:10:35 +0000 (19:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Dec 2021 13:02:02 +0000 (14:02 +0100)
commit49589e1da180a0070124ca69234673e18ce1f635
tree7f82c451e002506bfc0111fcd583e1c670acd642
parent855357f871fa89d710f6d3fcb5a028bf76a5be31
gdk/wayland: Support new `high-contrast` key

We now have a boolean setting that determines whether the high-contrast
theme should be used. Support it by automatically setting the existing
`gtk-theme-name` and `gtk-icon-theme-name` properties when enabled.

With that, it is no longer necessary to change the regular theme settings
for high-contrast, so toggling between high-contrast and a non-default
theme finally works reliably.
gdk/wayland/gdkdisplay-wayland.c